package com.yinhai.msg.email.service.write;

import com.yinhai.msg.email.entity.MsgEmailPo;

import java.util.List;

/**
 * 邮箱配置表(MsgEmail)表服务接口
 *
 * @author makejava
 * @since 2019-03-14 10:25:32
 */
public interface MsgEmailWriteService {
    /**
     * 新增数据
     *
     * @param msgEmail 实例对象
     * @return 实例对象
     */
    MsgEmailPo insert(MsgEmailPo msgEmail);

    /**
     * 修改数据
     *
     * @param msgEmail 实例对象
     * @return 实例对象
     */
    MsgEmailPo update(MsgEmailPo msgEmail);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(String id);

}